\hypertarget{class_space_craft}{
\section{SpaceCraft Class Reference}
\label{class_space_craft}\index{SpaceCraft@{SpaceCraft}}
}


Space craft that player is steering to smash asteroids and collect items.  


Inheritance diagram for SpaceCraft:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_space_craft}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_space_craft_afd5172da3f837bf03abd683ae9fb819e}{SpaceCraft} (int, bool)
\begin{DoxyCompactList}\small\item\em Constructs \hyperlink{class_space_craft}{SpaceCraft} at given {\itshape frame\/}. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_aa3e4b41cb2474953eac09e3d82357d71}{
void \hyperlink{class_space_craft_aa3e4b41cb2474953eac09e3d82357d71}{setMode} (\hyperlink{spacecraft_8h_a3cfdbc6a1f7160d294af1597cd5be2e2}{SpaceCraftMode})}
\label{class_space_craft_aa3e4b41cb2474953eac09e3d82357d71}

\begin{DoxyCompactList}\small\item\em Sets mode of space craft. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_a514b49ec7ff39ed5363d737aa74a3684}{
\hyperlink{spacecraft_8h_a3cfdbc6a1f7160d294af1597cd5be2e2}{SpaceCraftMode} \hyperlink{class_space_craft_a514b49ec7ff39ed5363d737aa74a3684}{mode} () const }
\label{class_space_craft_a514b49ec7ff39ed5363d737aa74a3684}

\begin{DoxyCompactList}\small\item\em Gets mode of space craft. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_afa9f9919403964508bb786a149a4ef7d}{
void \hyperlink{class_space_craft_afa9f9919403964508bb786a149a4ef7d}{toggleMode} ()}
\label{class_space_craft_afa9f9919403964508bb786a149a4ef7d}

\begin{DoxyCompactList}\small\item\em Switces mode of space craft. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_ab6c6aa14a00ab792ff54922659805dab}{
GLfloat \hyperlink{class_space_craft_ab6c6aa14a00ab792ff54922659805dab}{transformationStatus} () const }
\label{class_space_craft_ab6c6aa14a00ab792ff54922659805dab}

\begin{DoxyCompactList}\small\item\em Get status of space craft mode transformation. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_a2eded8f223bf97d3e852161e1616fc70}{
void \hyperlink{class_space_craft_a2eded8f223bf97d3e852161e1616fc70}{setTransformationStatus} (GLfloat \hyperlink{class_space_craft_a748d9d588f9ee1f7d50b878840ffb217}{status})}
\label{class_space_craft_a2eded8f223bf97d3e852161e1616fc70}

\begin{DoxyCompactList}\small\item\em Set status of space craft mode transformation. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_aa9fc1e4e6cfce919be776e37aecf7684}{
void \hyperlink{class_space_craft_aa9fc1e4e6cfce919be776e37aecf7684}{visible} (bool)}
\label{class_space_craft_aa9fc1e4e6cfce919be776e37aecf7684}

\begin{DoxyCompactList}\small\item\em Sets visibility of space craft. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_a2e425c2365a001aceb6a61522b02590f}{
bool \hyperlink{class_space_craft_a2e425c2365a001aceb6a61522b02590f}{isVisible} ()}
\label{class_space_craft_a2e425c2365a001aceb6a61522b02590f}

\begin{DoxyCompactList}\small\item\em Gets visibility of space craft. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_ad9e7086ddc4f56168bfd84fd101db0f9}{
void \hyperlink{class_space_craft_ad9e7086ddc4f56168bfd84fd101db0f9}{enabled} (bool)}
\label{class_space_craft_ad9e7086ddc4f56168bfd84fd101db0f9}

\begin{DoxyCompactList}\small\item\em Sets if space craft is enabled. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_a39d25efc9b2f03fca223937bad5c2ffa}{
bool \hyperlink{class_space_craft_a39d25efc9b2f03fca223937bad5c2ffa}{isEnabled} ()}
\label{class_space_craft_a39d25efc9b2f03fca223937bad5c2ffa}

\begin{DoxyCompactList}\small\item\em Gets if space craft is enabled. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_space_craft_ada9fbe2f08fd97570e11eb194a4951b4}{
\hyperlink{spacecraft_8h_a3cfdbc6a1f7160d294af1597cd5be2e2}{SpaceCraftMode} \hyperlink{class_space_craft_ada9fbe2f08fd97570e11eb194a4951b4}{spaceCraftMode}}
\label{class_space_craft_ada9fbe2f08fd97570e11eb194a4951b4}

\begin{DoxyCompactList}\small\item\em Mode of spacecraft. \item\end{DoxyCompactList}\item 
GLfloat \hyperlink{class_space_craft_a748d9d588f9ee1f7d50b878840ffb217}{status}
\item 
\hypertarget{class_space_craft_a6ea66837b652968cdfc7bab4d23893c8}{
bool \hyperlink{class_space_craft_a6ea66837b652968cdfc7bab4d23893c8}{spacecraftVisible}}
\label{class_space_craft_a6ea66837b652968cdfc7bab4d23893c8}

\begin{DoxyCompactList}\small\item\em Is currently visible. \item\end{DoxyCompactList}\item 
\hypertarget{class_space_craft_a7a9fd1d38afaac383888d4b0df312149}{
bool \hyperlink{class_space_craft_a7a9fd1d38afaac383888d4b0df312149}{spacecraftEnabled}}
\label{class_space_craft_a7a9fd1d38afaac383888d4b0df312149}

\begin{DoxyCompactList}\small\item\em Is currently enabled. Can be steered, can crash or collect items etc. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_space_craft_a9ca20b077852bfc7b050d3a6a32d1a40}{
class \hyperlink{class_space_craft_a9ca20b077852bfc7b050d3a6a32d1a40}{GameEngine}}
\label{class_space_craft_a9ca20b077852bfc7b050d3a6a32d1a40}

\item 
\hypertarget{class_space_craft_a2b7cb859d8128928c29d15e130375677}{
class \hyperlink{class_space_craft_a2b7cb859d8128928c29d15e130375677}{GameWidget}}
\label{class_space_craft_a2b7cb859d8128928c29d15e130375677}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Space craft that player is steering to smash asteroids and collect items. Also known as Miner. \hyperlink{class_space_craft}{SpaceCraft} also wraps on screen. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_space_craft_afd5172da3f837bf03abd683ae9fb819e}{
\index{SpaceCraft@{SpaceCraft}!SpaceCraft@{SpaceCraft}}
\index{SpaceCraft@{SpaceCraft}!SpaceCraft@{SpaceCraft}}
\subsubsection[{SpaceCraft}]{\setlength{\rightskip}{0pt plus 5cm}SpaceCraft::SpaceCraft (
\begin{DoxyParamCaption}
\item[{int}]{ frame, }
\item[{bool}]{ rewindEnabled}
\end{DoxyParamCaption}
)}}
\label{class_space_craft_afd5172da3f837bf03abd683ae9fb819e}


Constructs \hyperlink{class_space_craft}{SpaceCraft} at given {\itshape frame\/}. 

Parameter {\itshape rewindEnabled\/} sets rewind mode. 

\subsection{Member Data Documentation}
\hypertarget{class_space_craft_a748d9d588f9ee1f7d50b878840ffb217}{
\index{SpaceCraft@{SpaceCraft}!status@{status}}
\index{status@{status}!SpaceCraft@{SpaceCraft}}
\subsubsection[{status}]{\setlength{\rightskip}{0pt plus 5cm}GLfloat {\bf SpaceCraft::status}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{class_space_craft_a748d9d588f9ee1f7d50b878840ffb217}
Transformation status of the mode change of \hyperlink{class_space_craft}{SpaceCraft}. If the transformation status is more than 0.0 and less than 1.0 the ship is transforming from ball mode to cone mode or vice versa. Is strongly related to GameEngine::modeCone2Ball GameEngine::modeBall2Cone \hyperlink{class_game_engine_a2fa6f866478a0a1194db45cd18ff004a}{GameEngine::updateSpaceShipGraphics} 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
\hyperlink{spacecraft_8h}{spacecraft.h}\item 
spacecraft.cpp\end{DoxyCompactItemize}
